package com.yilin.tms.core.entity.user.technical;


import com.baomidou.mybatisplus.annotation.TableName;
import com.yilin.tms.core.commons.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "user_technical_fee_rule_item")
@TableName("user_technical_fee_rule_item")
public class TechnicalFeeRuleItem extends BaseEntity {

    @Column(name = "fee_rule_id")
    private String feeRuleId;//规则表
    @Column(name = "start_fee")
    private Double startFee;//开始档位
    @Column(name = "end_fee")
    private Double endFee;//结束档位
    @Column(name = "is_rate")
    private Boolean isRate;//计价方式，true 比率计价

    @Column(name = "fix_cost")
    private double fixCost;//固定价格  比如 1-100块固定收1块手续费
    @Column(name = "rate_cost")
    private double rateCost;//比率计价  比如 100-1000块收1%手续费

    @Column(name = "end_no_limited")
    private Boolean endNoLimited;//为true 代表最后一条
    @Column(name = "disabled")
    private Boolean disabled;//一般除最后一条均不可标记

    @Column(name = "configure_level")
    private Integer configureLevel;//排序级别

    //   0-2000:        2
    //   2000-30000：   0.001 千1
    //   30000-无穷：   30000

    public String getFeeRuleId() {
        return feeRuleId;
    }

    public void setFeeRuleId(String feeRuleId) {
        this.feeRuleId = feeRuleId;
    }

    public Double getStartFee() {
        return startFee;
    }

    public void setStartFee(Double startFee) {
        this.startFee = startFee;
    }

    public Double getEndFee() {
        return endFee;
    }

    public void setEndFee(Double endFee) {
        this.endFee = endFee;
    }

    public Boolean getIsRate() {
        return isRate;
    }

    public void setIsRate(Boolean rate) {
        isRate = rate;
    }

    public double getFixCost() {
        return fixCost;
    }

    public void setFixCost(double fixCost) {
        this.fixCost = fixCost;
    }

    public double getRateCost() {
        return rateCost;
    }

    public void setRateCost(double rateCost) {
        this.rateCost = rateCost;
    }

    public Boolean getEndNoLimited() {
        return endNoLimited;
    }

    public void setEndNoLimited(Boolean endNoLimited) {
        this.endNoLimited = endNoLimited;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Integer getConfigureLevel() {
        return configureLevel;
    }

    public void setConfigureLevel(Integer configureLevel) {
        this.configureLevel = configureLevel;
    }
}
